// import directives
import debounce from './modules/debounce'
import throttle from './modules/throttle'

const directivesList = {
  // Custom directives
  debounce,
  throttle
}

const directives = {
  install: function (app) {
    Object.keys(directivesList).forEach((key) => {
      // 注册自定义指令
      app.directive(key, directivesList[key])
    })
  }
}

export default directives
